<?php

namespace EasyTiktok\MiniProgram;

use EasyTiktok\Kernel\ServiceContainer;
use EasyTiktok\Kernel\Traits\ResponseCastable;

/**
 * Class Application.
 *
 * @author zhaoxiang <zhaoxiang051405@gmail.com>
 *
 */
class Application extends ServiceContainer {

    use ResponseCastable;
    /**
     * @var array
     */
    protected array $providers = [
    ];

    /**
     * Handle dynamic calls.
     *
     * @param string $method
     * @param array $args
     *
     * @return mixed
     */
    public function __call(string $method, array $args) {
        return $this->base->$method(...$args);
    }
}
